import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'textEllipsis'
})
export class TextEllipsisPipe implements PipeTransform {

  transform(data: any): any {
    if (data.length < 25) {
      return data;
    }
    return data.substring(0, 25) + '...';
  }

}
